package com.koron.order.defect.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.order.common.bean.po.OrderDispatchWorker;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @ClassName DefectDispatchVO
 * @description
 * @Author zhouj
 * @Date 2021/9/16 18:59
 */
@Data
public class DefectDispatchVO {

    @ApiModelProperty(value = "工单表ID")
    private String orderId;

    @ApiModelProperty(value = "工单派工ID")
    private String orderDispathId;

    @ApiModelProperty(value = "工单派工ID")
    private String defectDispathId;

    @ApiModelProperty(value = "是否外单位")
    private Integer isOut;

    @ApiModelProperty(value = "本单位责任人账号,选择是外单位，则为跟踪负责人；若选择不是外单位，则为负责人")
    private String leader;

    @ApiModelProperty(value = "本单位责任人名称")
    private String leaderName;

    @ApiModelProperty(value = "外单位负责人账号")
    private String outLeader;

    @ApiModelProperty(value = "外单位负责人名称")
    private String outLeaderName;

    @ApiModelProperty(value = "工作负责人单位ID")
    private String deptWork;

    @ApiModelProperty(value = "工作负责人单位名称")
    private String deptWorkName;

    @ApiModelProperty(value = "工作内容")
    private String context;

    @ApiModelProperty(value = "注意事项")
    private String attention;

    @ApiModelProperty(value = "工作地点ID")
    private String location;

    @ApiModelProperty(value = "工作地点名称")
    private String locationName;

    @ApiModelProperty(value = "工单性质")
    private Integer nature;

    @ApiModelProperty(value = "预计开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "预计结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "缺陷工单派工成员")
    private List<OrderDispatchWorker> orderDispatchWorker;

}
